#!/bin/bash

[[ x = "x$1" ]] && {
    echo "Usage: $0 JSONMessageInputFile.json"
    exit 1
}
#JSONRequest='{"id":0,"type":"test/localEventCheck"}'
inf=$1
#JSONRequest=$(cat $inf)
#[[ x = "x${JSONRequest}" ]] && {
#    echo "ERROR: no JSON data found in file [$inf]!"
#    exit 2
#}
#export JSONRequest
php ./JSONRequest-dispatch.php < $inf
#unset JSONRequest
